0704-883-0675     |      dataprojectng@gmail.com

Witnessing Control Flow Graph Optimizations

  • Project Research
  • 1-5 Chapters
  • Abstract : Available
  • Table of Content: Available
  • Reference Style: APA
  • Recommended for : Student Researchers
  • NGN 5000

ABSTRACT

Proving the correctness of a program transformation, and specifically, of a compiler optimization, is a long-standing research problem. Trusting the compiler requires to guarantee that the properties verified on the source program hold for the compiled target-code as well. Thus, the primary objective of formal correctness verification is to preserve the semantics of the source code, maintaining untouched its logical behavior. Traditional methods for formal correctness verification are not convenient to validate large and complex programs like compilers [1], and intensive testing, despite its proven efficacy, cannot guarantee the absence of bugs [2]. This thesis is part of a larger on-going research project aimed to demonstrate the feasibility to overcome the difficulties of traditional formal methods. K. Namjoshi and L. Zuck [3] propose a new methodology for creating an automated proof to guarantee the correctness of every execution of an optimization. A witness is a run-time generated relation between the source code and the target code, before and after the transformation. The relation is able to represent all the properties that must be valid throughout the optimization, offering a mathematical formula to prove, through a SMT-Solver (typically Microsoft Z3 ), if the invariants hold and the semantics is preserved. This work is a further step towards the implementation of a witnessing compiler [4]: the SimplifyCFG pass of the LLVM compiler framework is augmented with a witness generator procedure which constructs, run-time, the relations to prove the correctness of every single simplification in the control flow graph, performed by the compiler. We show that it is feasible to augment the SimplifyCFG pass with a witness generation procedure. We describe the structure of the code and the mathematical relations designed to demonstrate the correctness of a transformation on the Control Flow Graph. Benchmarks and tests will prove the correct behavior of our implementation and the effectiveness of the witnessing procedure. We provide details about the witnesses and the results of the benchmarks. First, the problem is described, together with the limitations of the traditional methods; then a solution is designed and explained. Details about the actual implementation for the SimplifyCFG code are provided in further sections




FIND OTHER RELATED TOPICS


Related Project Materials

A STUDY ON THE PROBLEMS FACING SECONDARY SCHOOL EDUCATION IN NIGERIA

BACKGROUND TO THE STUDY

Education is the process of bringing desirable change into the behavior of human beings. It can...

Read more
An evaluation of teacher training curricula for early childhood education in Tudun Wada Local Government Area, Kano State

Background of the Study
Teacher training curricula are fundamental to the development of competent educat...

Read more
The influence of student-teacher relationships on classroom behavior in secondary schools in Jos South LGA, Plateau State

Background of the Study
The quality of student-teacher relationships is widely recognized as a fundamental component of eff...

Read more
SYNTHESIS AND ANTICONVULSANT STUDIES OF 3 ISOMERS OF 4-[(DIMETHYLPHENYL)AMINO]-4-OXOBUTENOIC ACID

ABSTRACT

Epilepsy is a disorder of public concern worldwide and has been widely treated via pharmacotherapy, which are faced with challen...

Read more
The Effect of Cultural Sensitivity on Foreign Tourists’ Experiences in Niger State

Background of the Study

Cultural sensitivity refers to the awareness, understanding, a...

Read more
The role of religious organizations in HIV/AIDS awareness in Zamfara State

Background of the Study
Religious organizations have long played an influential role in shaping community values and behavi...

Read more
EFFECTS OF URBAN RENEWAL ON WOMEN'S ROLE

ABSTRACT

This project work is aimed at finding out the extent to which the family r...

Read more
CAUSES AND SOLUTIONS OF TRUANCY AMONG SECONDARY SCHOOL STUDENTS IN ENUGU NORTH

 

ABSTRACT

This project was carried out to find out the causes and solutions of truancy among secondary s...

Read more
APPLICATION OF TOTAL QUALITY MANAGEMENT TECHNIQUES THE MANUFACTURING SECTOR OF NIGERIA ECONOMY

ABSTRACT

The research work looks at the Application Total Quality Management Techniques in the manufact...

Read more
An Assessment of Semantic Clarity in Nigerian Television Advertisements: A Comparative Analysis of Rural and Urban Media

Background of the Study
Nigerian television advertisements serve as a crucial medium for commercial communication across d...

Read more
Share this page with your friends




whatsapp